-- GENERATED SPELL FOR [Rock Stalker] --


function spell0_11739(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11739', 30000, 1)
end

function spell1_11739(pUnit, Event) --@Web,n/a--
pUnit:FullCastSpellOnTarget(745,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11739', 5252, 1)
end

function Sorts_11739(pUnit, Event)
local choix_sorts_11739 = math.random(0, 1)
if choix_sorts_11739 == 0 then
pUnit:RegisterEvent('spell0_11739', 1, 1)
end
if choix_sorts_11739 == 1 then
pUnit:RegisterEvent('spell1_11739', 1, 1)
end
end

function mob11739_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11739', math.random(1500, 3000), 1)
end

function mob11739_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11739_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11739_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11739, 1, 'mob11739_Action')
RegisterUnitEvent(11739, 2, 'mob11739_Leave')
RegisterUnitEvent(11739, 3, 'mob11739_Kill')
RegisterUnitEvent(11739, 4, 'mob11739_Die')
